const logger = require('../middleware/logger');

/**
 * @param {import('../index').Application} app 
 */
module.exports = (app) => {
  const { router, controller } = app;

  const checkerRouter = router.namespace('/checker', logger);

  checkerRouter.post('/update-checker', controller.checker.updateChecker);
  checkerRouter.get('/delete-checker', controller.checker.deleteCheckerById);
  checkerRouter.get('/get-all-checker', controller.checker.getAllChecker);
  checkerRouter.get('/get-checker', controller.checker.getChecker);
};